package com.primb.bench.common.constant;

import com.primb.bench.common.utils.RoleLevelConvert;

/**
 * 常量类
 */
public class AppConstant {
    /**
     * 编码格式
     */
    public static final String TYPE_CHARSET = "charset=UTF-8";

    /**
     * 图片缓存地址
     */
    public static String LOAD_CACHE = "/Bench";

    /**
     * 屏幕宽度
     */
    public static int SCREEN_WIDTH;
    /**
     * 屏幕高度
     */
    public static int SCREEN_HEIGHT;

    public static final int LOAN_LOGO_REQUEST = 106;
    public static final int LOAN_CUSTOMER_REQUEST = 101;
    public static final int LOAN_LOAN_REQUEST = 102;
    public static final int LOAN_ENSURE_REQUEST = 103;
    public static final int LOAN_TAX_REQUEST = 104;
    public static final int LOAN_PROMISE_REQUEST = 105;

    public static final int LOAN_CUSTOMER_RESULT = 201;
    public static final int LOAN_LOAN_RESULT = 202;
    public static final int LOAN_ENSURE_RESULT = 203;
    public static final int LOAN_TAX_RESULT = 204;
    public static final int LOAN_PROMISE_RESULT = 205;
    public static final int LOAN_LOGO_RESULT = 106;

    public static final int INFO_CUSTOMER_REQUEST = 301;
    public static final int INFO_LOAN_REQUEST = 302;
    public static final int INFO_ENSURE_REQUEST = 303;

    public static final int INFO_CUSTOMER_RESULT = 401;
    public static final int INFO_LOAN_RESULT = 402;
    public static final int INFO_ENSURE_RESULT = 403;

    public static final int ADD_CUSTOMER_TYPE = 501;
    public static final int ADD_CUSTOMER_CREDIT = 503;
    public static final int ADD_CUSTOMER_SIZE = 504;
    public static final int ADD_LOAN_TYPE = 505;
    public static final int ADD_LOAN_REPAYMENT_TYPE = 512;
    public static final int ADD_LOAN_BUSINESS_TYPE = 506;
    public static final int ADD_LOAN_INDUSTRY = 507;
    public static final int ADD_LOAN_DATE = 511;
    public static final int ADD_LOAN_RATE_TYPE = 508;
    public static final int ADD_ENSURE_MAIN_TYPE = 509;
    public static final int ADD_ENSURE_CONCRETENESS = 510;
    public static final int ADD_MAIN_TYPE = 909;
    public static final int ADD_ENSURE_GOODS = 910;
    public static final int ENSURE_OBJECT_INFO = 513;
    public static final int ENSURE_OBJECT_RESULT = 613;

    public static final int ADD_ENSURE_OBJECT_TYPE = 516;
    public static final int ADD_ENSURE_OBJECT_RESULT = 616;

    public static final int EDIT_ENSURE_OBJECT_TYPE = 614;
    public static final int EDIT_ENSURE_OBJECT_RESULT = 615;

    public static final int LOAN_CALCULATE = 1001;
    public static final int LOAN_PRICE = 1002;

    public static String USER_NAME = null;
    public static String USER_NAME_ID = null;
    public static String USER_PART_NAME = null;
    public static String USER_PART_ID = null;
    public static String ROLE_LEVEL = null;

    public static RoleLevelConvert.RoleLevel ROLE_LEVEL_ENUM = null;


    public static final int SEARCH_PRICE_REQUEST = 714;
    public static final int SEARCH_PRICE_RESULT = 715;

    public static final int SEARCH_REAPPLY_REQUEST = 814;
    public static final int SEARCH_REAPPLY_RESULT = 815;

    public static final int APPROVAL_REQUEST = 914;
    public static final int APPROVAL_RESULT = 915;

    public static final String JSON_PROCESS = "[\n" +
            "                             {\n" +
            "                                 \"departmentName\":\"项目执行部\",\n" +
            "                                 \"personName\":\"朱迪\",\n" +
            "                                 \"personId\":\"U01312\",\n" +
            "                                 \"personType\":\"1\",\n" +
            "                                 \"state\":\"1\",\n" +
            "                                 \"date\":\"2016-05-31 12:50\",\n" +
            "                                 \"suggestion\":\"申请一项资金审批，预计利率6.7%。\",\n" +
            "                                 \"stateDesc\":\"通过\"},\n" +
            "                             {\n" +
            "                                 \"departmentName\":\"项目审核部\",\n" +
            "                                 \"personName\":\"王勇\",\n" +
            "                                 \"personId\":\"U01212\",\n" +
            "                                 \"personType\":\"2\",\n" +
            "                                 \"state\":\"4\",\n" +
            "                                 \"date\":\"2016-06-01 09:25\",\n" +
            "                                 \"suggestion\":\"鉴于当前利率调整，目前方案盈利低风险较大，总体不符合我司的规定，特驳回，重新估算。\",\n" +
            "                                 \"stateDesc\":\"不通过\"},\n" +
            "                             {\n" +
            "                                 \"departmentName\":\"财务部\",\n" +
            "                                 \"personName\":\"张佩阳\",\n" +
            "                                 \"personId\":\"U00212\",\n" +
            "                                 \"personType\":\"2\",\n" +
            "                                 \"state\":\"2\",\n" +
            "                                 \"date\":\"\",\n" +
            "                                 \"suggestion\":\"\"},\n" +
            "                             {\n" +
            "                                 \"departmentName\":\"董事局\",\n" +
            "                                 \"personName\":\"张军\",\n" +
            "                                 \"personId\":\"U00012\",\n" +
            "                                 \"personType\":\"2\",\n" +
            "                                 \"state\":\"3\",\n" +
            "                                 \"date\":\"\",\n" +
            "                                 \"suggestion\":\"\"}\n" +
            "                             \n" +
            "                             ]";

    public static final String JSON_APPROVAL = "{\"success\":\"ture\",\n" +
            "      \"fialMessage\":\"服务器连接异常\",\n" +
            "      \"mainData\": {\"title\":\"审批界面\",\n" +
            "                     \"processInfo\":[\n" +
            "                             {\n" +
            "                                 \"departmentName\":\"项目执行部\",\n" +
            "                                 \"personName\":\"朱迪\",\n" +
            "                                 \"personId\":\"U01312\",\n" +
            "                                 \"personType\":\"1\",\n" +
            "                                 \"state\":\"1\",\n" +
            "                                 \"date\":\"2016-05-31 12:50\",\n" +
            "                                 \"suggestion\":\"申请一项资金审批，预计利率6.7%。\"},\n" +
            "                             {\n" +
            "                                 \"departmentName\":\"项目审核部\",\n" +
            "                                 \"personName\":\"王勇\",\n" +
            "                                 \"personId\":\"U01212\",\n" +
            "                                 \"personType\":\"2\",\n" +
            "                                 \"state\":\"1\",\n" +
            "                                 \"date\":\"2016-06-01 09:25\",\n" +
            "                                 \"suggestion\":\"鉴于当前利率调整，目前方案盈利低风险较大，总体不符合我司的规定，特驳回，重新估算。\"},\n" +
            "                             {\n" +
            "                                 \"departmentName\":\"财务部\",\n" +
            "                                 \"personName\":\"张佩阳\",\n" +
            "                                 \"personId\":\"U00212\",\n" +
            "                                 \"personType\":\"2\",\n" +
            "                                 \"state\":\"2\",\n" +
            "                                 \"date\":\"\",\n" +
            "                                 \"suggestion\":\"\"},\n" +
            "                             {\n" +
            "                                 \"departmentName\":\"董事局\",\n" +
            "                                 \"personName\":\"张军\",\n" +
            "                                 \"personId\":\"U00012\",\n" +
            "                                 \"personType\":\"2\",\n" +
            "                                 \"state\":\"3\",\n" +
            "                                 \"date\":\"\",\n" +
            "                                 \"suggestion\":\"\"}\n" +
            "                             \n" +
            "                             ],\n" +
            "                     \"mainData\":[\n" +
            "                             {\"titleInfo\":{\"applyPerson\":\"张子栋\",\"applyTime\":\"2017-03-30 12:33\"}},\n" +
            "                             {\"keyValueGroup\":[\n" +
            "                                       {\"key\":\"总金额\",\"value\":\"123,456\"},\n" +
            "                                       {\"key\":\"本期浮动利率\",\"value\":\"3.6%\"},\n" +
            "                                       {\"key\":\"预期盈利\",\"value\":\"156\"},\n" +
            "                                       {\"key\":\"开始日期\",\"value\":\"2017-03-29\"},\n" +
            "                                       {\"key\":\"结束日期\",\"value\":\"2017-07-29\"},\n" +
            "                                       {\"key\":\"承办业务\",\"value\":\"天享一号专项\"}\n" +
            "                                       ]},\n" +
            "                             {\"pushMoreInfo\":{\"moreInfoTitle\":\"更多明细信息\",\n" +
            "                                                 \"moreInfoData\":\"\"\n" +
            "                                                 }},\n" +
            "                             {\"pushMoreInfo\":{\"moreInfoTitle\":\"更多明细信息2\",\n" +
            "                                                 \"moreInfoData\":{\"keyValueGroup\":[\n" +
            "                                                                           {\"key\":\"总金额\",\"value\":\"123,456\"},\n" +
            "                                                                           {\"key\":\"本期浮动利率\",\"value\":\"3.6%\"},\n" +
            "                                                                           {\"key\":\"预期盈利\",\"value\":\"156\"},\n" +
            "                                                                           {\"key\":\"开始日期\",\"value\":\"2017-03-29\"},\n" +
            "                                                                           {\"key\":\"结束日期\",\"value\":\"2017-07-29\"},\n" +
            "                                                                           {\"key\":\"承办业务\",\"value\":\"天享一号专项\"}\n" +
            "                                                                           ]}\n" +
            "                                                 }},\n" +
            "                             {\"bigTextView\":{\n" +
            "                                       \"textTitle\":\"重要信息\",\n" +
            "                                       \"textDetail\":\"本次是推送给特技客户，所以按照最优会利率给出的方案，此方案有效期为5年。五年后将重新按照市场行情订新利率，为预防风险，对本方案的最终受益采用浮动利率，不保本。\"}},\n" +
            "                             {\"attachMentGroup\":[{\"fileName\":\"word文件\",\n" +
            "                                                      \"fileId\":\"W1022\",\n" +
            "                                                      \"fileType\":\"word\"},\n" +
            "                                                    {\"fileName\":\"Excel文件\",\n" +
            "                                                      \"fileId\":\"E1022\",\n" +
            "                                                      \"fileType\":\"Excel\"},\n" +
            "                                                    {\"fileName\":\"PDF文件\",\n" +
            "                                                      \"fileId\":\"P1022\",\n" +
            "                                                      \"fileType\":\"PDF\"}]}\n" +
            "                             \n" +
            "                             \n" +
            "                             ]\n" +
            "                     }\n" +
            "      }";

}
